import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/views/main/index'

Vue.use(Router)

const routes = [{
  path: '/',
  name: 'HelloWorld',
  component: Index
}]

const router = new Router({
  mode: 'history', // 使用 HTML5 History 模式
  base: process.env.BASE_URL,
  routes
});

export default router;